FROM keking/kkfileview-jdk:4.3.0

MAINTAINER ZhuHJay <zhuhjay@qq.com>

ADD *.tar.gz /opt/

ENV KKFILEVIEW_BIN_FOLDER /opt/kkFileView-4.3.0/bin

# 环境变量：redis密码
ENV KK_SPRING_REDISSON_PASSWORD root

ENTRYPOINT java -Dfile.encoding=UTF-8 -Dspring.config.location=/opt/kkFileView-4.3.0/config/application.properties -DKK_SPRING_REDISSON_PASSWORD=${KK_SPRING_REDISSON_PASSWORD} -jar /opt/kkFileView-4.3.0/bin/kkFileView-4.3.0.jar